//
//  LCMyTaskTableViewCell.m
//  lechuang
//
//  Created by Mr_hi on 2023/4/12.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import "LCMyTaskTableViewCell.h"
#import "LCTaskModel.h"
#import "LCMyTaskModel.h"


@interface LCMyTaskTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *conditionLb;

@property (weak, nonatomic) IBOutlet UILabel *strmemoLb;

@end


@implementation LCMyTaskTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setTask:(LCMyTaskModel *)task {
    _task = task;
    [self.iconView sd_setImageWithURL:[LCFunction XWX_URLImg:task.appdata.appthumb]];
    self.nameLabel.text = task.appdata.appname;
    self.conditionLb.text = kFORMAT(@"开始时间：%@",task.addtime);
    self.strmemoLb.text = kFORMAT(@"驳回原因：%@",task.strmemo);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end


@interface LCMyTaskGameTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *conditionLb;

@property (weak, nonatomic) IBOutlet UILabel *priceLb;


@end


@implementation LCMyTaskGameTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setTask:(LCGameTaskModel *)task {
    _task = task;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:task.product_icon]];
    self.nameLabel.text = task.title;
    self.conditionLb.text = kFORMAT(@"任务剩余%ld天",task.serve_end_day);
    self.priceLb.text = kFORMAT(@"累计已赚取%.2f元",task.member_income);
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
